﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Toulr.Domains.Business;

public partial class UserControl_ShopInfo : System.Web.UI.UserControl
{
    public ShopInfo shopModel = new ShopInfo();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            
            shopModel.shopName = "九门小吃";
            shopModel.shopTag = "小吃";
            shopModel.shopTelNumber.Add("010-65748912");
            shopModel.shopTelNumber.Add("010-65738912");
            shopModel.shopAddress = "西城区德内大街孝友胡同（1号） (宋庆龄故居旁边) ";
            shopModel.shopOnTime = "冬夏季10:00-21:00 春秋季10:00-22:00";
            shopModel.shopTransportInfo = "55路德胜门站. 5果子市站. 815德内甘水桥站. 909德胜门站. 800德胜门站. 44德胜门站. 380德胜门站";
            shopModel.shopFeature.Add("供应夜宵");
            shopModel.shopFeature.Add("是老字号");
            shopModel.shopInsist.Add("无线上网");
            shopModel.shopInsist.Add("刷卡");
        }
    }
    private ShopStatusMode _shopStatusOpt;
    public ShopStatusMode  ShopStatusMode
    {
        get { return _shopStatusOpt; }
        set { _shopStatusOpt = value; }
    }
    private int _shopID;
   public int shopID
   {
       get { return _shopID; }
       set { _shopID = value; }
   }
}

public class ShopInfo
{
    private string _shopName;
    private string _shopTag;
    private List<string> _shopTelNumber = new List<string>();
    private string _shopAddress;
    private string _shopOnTime;
    private string _shopTransportInfo;
    private List<string> _shopFeature = new List<string>();
    private List<string> _shopInsist = new List<string>();
    private int _shopWantNum;
    private int _shopGoneNum;
    public string shopName
    {
        get{return _shopName;}
        set { _shopName = value; }
    }
    public string shopTag
    {
        get { return _shopTag; }
        set { _shopTag = value; }
    }
    public List<string> shopTelNumber
    {
        get { return _shopTelNumber; }
        set { _shopTelNumber = value; }
    }
    public string shopAddress
    {
        get { return _shopAddress; }
        set { _shopAddress = value; }
    }
    public string shopOnTime
    {
        get { return _shopOnTime; }
        set { _shopOnTime = value; }
    }
    public string shopTransportInfo
    {
        get { return _shopTransportInfo; }
        set { _shopTransportInfo = value; }
    }
    public List<string> shopFeature
    {
        get { return _shopFeature; }
        set { _shopFeature = value; }
    }
    public List<string> shopInsist
    {
        get { return _shopInsist; }
        set { _shopInsist = value; }
    }
    public int shopWantNum
    {
        get { return _shopWantNum; }
        set { _shopGoneNum = value; }
    }
    public int shopGoneNum
    {
        get { return _shopGoneNum; }
        set { _shopGoneNum = value; }
    }
}
public enum ShopStatusMode
{
    NULLMODE = 0,
    NOSTROREOWNERMODE,
    FULLMODE
}